home *** CD-ROM | disk | FTP | other *** search
- 0 rem********* file cabinet **********
- 1 rem********* djb shibley **********
- 10 gosub5000:goto500
- 25 print"[152]":forj=1tof1:print""cd$w$(h,j)"":next
- 27 ifasc(f2$(1))<>42thenreturn
- 29 forj=2to11:print""cd$w$(h,j):next:return
- 35 poke53280,15:print"[147]"spc(13)f0$""
- 36 print"press return through each fieldto quit[144]"
- 37 forj=1tof1:printf2$(j)":":next:ifasc(f2$(1))<>42thenreturn
- 39 print"":forj=1to10:print"v"j:next:return
- 40 print"":forj=1tof1:print""left$(sp$,25)"":next
- 42 ifasc(f2$(1))<>42thenreturn
- 44 forj=1to10:print""left$(sp$,26):next:return
- 100 poke53280,.:poke53281,.:print"[147][158]loading : "f0$""
- 105 print"please stand by":ch=.
- 110 open2,8,2,"0:"+f0$+",s,r":input#2,t:ifasc(f2$(1))=42then120
- 115 fori=1tot:forj=1tof1:input#2,w$(i,j):next:next:goto125
- 120 fori=1tot:input#2,w$(i,1):forj=2to11:input#2,w$(i,j):next:next
- 125 close2:return
- 130 printcb$:print""spc(13);:y$="next or return":gosub444
- 135 ifx$=chr$(13)orx$="n"orx$="r"thenprintcb$:return
- 137 goto130
- 425 print"[155] [157][148] ":x=len(x$)
- 427 forj=1to28-x:print""spc(j)"[157] "left$(x$,x/2)""spc(39-j)left$(lr$,x/2);
- 430 printright$(x$,x/2)" [157]":fork=1to15:next:next:forj=1to35
- 433 print"[155] [157][148] ":fork=1to20:next
- 435 print""spc(20-x/2)x$:fork=1to20:next:next:return
- 444 x=len(y$):printy$left$(lr$,x);
- 445 forj=1to50:getx$:ifx$=""thennext:goto450
- 447 j=50:next:return
- 450 printleft$(sp$,x)left$(lr$,x);
- 453 forj=1to40:getx$:ifx$=""thennext:goto444
- 455 j=40:next:return
- 460 y$="[209]":z$=""
- 465 gosub444:ifx$=""orx$=chr$(13)thenprint" ":return
- 470 ifx$="[157]"orx$=chr$(20)andlen(z$)=.then465
- 475 ifx$="[157]"orx$=chr$(20)thenz$=left$(z$,len(z$)-1):print"[157] [157][157]";:goto465
- 477 ifx$>"^"orlen(z$)=dlthen465
- 480 ifx$<" "orx$=chr$(34)orx$=","orx$=";"orx$=":"then465
- 485 print"[152]"x$"";:z$=z$+x$:goto465
- 500 poke53280,4:poke53281,15:print"[147]";:ch=.
- 505 print" ";
- 508 forj=.to22:print" ";:next
- 510 print" [157][148] "
- 512 print"file cabinet[157][157][157][157][157][157][157][157][157][157][157][157][158][197][197][197][197][197][197][197][197][197][197][197][197]"
- 514 print"[154]from shibley software[157][157][157][157][157][157][157][157][157][157][157][157][157][157][157][157][157][157][157][157][157][157][156][183][183][183][183][183][183][183][183][183][183][183]";
- 515 print"[183][183][183][183][183][183][183][183][183][183][183]"
- 517 printspc(10)"1 - [144]new file":printspc(10)"2 - [144]existing file"
- 518 printspc(10)"3 - [144]display disk":printspc(10)"4 - [144]command entry"
- 520 printspc(10)"5 - [144]terminate program"
- 523 print""spc(13);
- 525 y$="depress option"::gosub444:ifx$=""orx$="5"then4000
- 530 ifx$<"1"orx$>"5"then523
- 535 o$=x$:ifo$="3"then800
- 540 print" ":forj=1to6:print""left$(sp$,30):next:ifo$="4"then1000
- 545 print""spc(12)"return file name"
- 547 print"[145][145][145][145] return empty filename to cancel"
- 550 printspc(11)"[197][197][197][197][197][197][197][197][197][197][197][197][197][197][197][197][197][197][145][145]":printce$;
- 555 dl=16:gosub460:ifx$=""then500
- 560 f0$=z$:ifz$=""then500:rem f0$="scratch":printce$"scratch"
- 565 iflen(f0$)<16thenf0$=f0$+" ":goto565
- 575 open2,8,2,"0:dir,s,r":input#2,t1:if(t1<30oro$="2")andst=.then580
- 576 close2:ifst>.thenx$="unformatted disk":gosub425:goto500
- 577 x$="disk full error":gosub425:goto500
- 580 x=.:forj=1tot1:input#2,x$:w$(j,.)=x$:ifleft$(x$,16)=f0$thenx=j
- 585 next:close2:ifx=.ando$="1"thenprint"":goto595
- 587 ifx=.thenx$="file not found":gosub425:print""sp$:goto545
- 588 ifo$="1"thenx$="file dup. error":gosub425:print""sp$:goto545
- 589 f1=val(mid$(w$(x,.),17,1)):forj=1tof1:f2$(j)=mid$(w$(x,.),8+j*10,10):next
- 590 gosub100:goto2000
- 595 print""f0$""spc(19)"# of fields":print""right$(sp$,38)
- 600 print"[145]"spc(12):dl=1:gosub460:ifx$=""then500
- 605 f1=val(z$):ifz$=""orz$<"1"orz$>"8"thenf1=1
- 610 print"":printspc(22)f1" fields"spc(19)"field "
- 615 fori=1tof1:print""spc(24)i"[157][157][157][157][157][157][157][157][157][157][157][157][157][157][157]";
- 616 print" [157][157][157][157][157][157][157][157][157][157]";
- 620 dl=10:gosub460:ifx$=""thenj=f1:next:goto500
- 621 ifz$=""thenz$="field"+str$(i)
- 625 iflen(z$)<10thenz$=z$+" ":goto625
- 630 f2$(i)=z$:ifasc(z$)=42theniff1>1thenx$="variable error":gosub425:goto500
- 645 print"";:forj=1toi:print"";
- 646 ifj=5thenprint"[145][145][145][145][145][145][145][145]";
- 650 next:printf2$(i):next:t=.:t1=t1+1:w$(t1,.)=f0$+right$(str$(f1),1)
- 651 forj=1tof1:w$(t1,.)=w$(t1,.)+f2$(j):next:ch=1
- 655 gosub35:ift=200thenx$="file full":gosub425:goto500
- 660 xq$="":t=t+1:print""spc(32)t"":fori=1tof1
- 665 print""spc(12);:dl=25:gosub460:ifx$=""andt=1theni=f1:next:goto500
- 670 ifx$=""thent=t-1:i=f1:next:ch=ch+1:goto2000
- 675 xq$=xq$+z$:ifz$=""thenz$="*"
- 685 w$(t,i)=z$:next:ifxq$=""andt=1then500
- 686 ifxq$=""thent=t-1:ch=ch+1::goto2000
- 687 ifasc(f2$(1))<>42then715
- 690 print"":forj=2to11:w$(t,j)="*":next:fori=2to11:print"";
- 700 dl=25:gosub460:ifx$=""orz$=""theni=11:next:goto715
- 710 w$(t,i)=z$:next
- 715 gosub40:goto660
- 725 printcb$:print"[145]";:y$="is this the record to be erased"
- 727 gosub444:ifx$<>"y"andx$<>"n"then725
- 730 printcb$:ifx$="n"andsa<=tthen2070
- 731 ifx$="n"then2000
- 735 printcb$:printspc(13)"[145]erasing record[145]":ch=1:t=t-1:ifasc(f2$(1))=42then740
- 736 fori=htot:forj=1tof1:w$(i,j)=w$(i+1,j):next:next:goto744
- 740 fori=htot:forj=1to11:w$(i,j)=w$(i+1,j):next:next
- 744 printcb$:printspc(11)"[145]record eliminated":forj=1to800:next:goto2000
- 750 print"":dl=25:y$="[209]":fori=1tof1:print""spc(len(w$(h,i))+12);
- 755 z$=w$(h,i):gosub465:ifz$<>w$(h,i)thench=1
- 760 ifz$=""thenz$="*"
- 765 w$(h,i)=z$:ifx$=""theni=f1:next:goto2000
- 770 next:ifasc(f2$(1))<>42thengoto790
- 775 print"";:fori=2to11:printspc(len(w$(h,i))+10);:z$=w$(h,i)
- 780 gosub465:ifz$<>w$(h,i)thench=1
- 785 w$(h,i)=z$:ifx$=""theni=11:next:goto2000
- 788 next
- 790 gosub130:ifx$=chr$(13)thenh=h+1:ifh>tthenh=1
- 792 ifx$=chr$(13)then2080
- 794 ifx$="n"then2050
- 798 goto2000
- 800 poke53280,5:poke53281,4:print"[147][158]files on this disk are:[144]"
- 805 open2,8,2,"dir,s,r":input#2,t1:ifst=.then810
- 806 close2:x$="unformatted disk":gosub425:goto500
- 810 forj=1tot1:input#2,x$:print""left$(x$,16);:ifint(j/2)=j/2thenprint
- 815 next:close2:gosub130:ifx$=chr$(13)orx$="r"then500
- 820 goto800
- 825 poke53280,.:poke53281,2:print"[147][150]"spc(16)"printing":pr$="01"
- 826 open2,8,2,"0:ptr.fmt,s,r":input#2,x$:ifst=64thenpr$=x$
- 827 close2:p(.)=val(left$(pr$,1)):p(1)=val(right$(pr$,1))
- 830 open4,4:print#4,spc(30)f0$:print#4,spc(30)"----------------"chr$(13)chr$(13)
- 835 fori=1tot:getx$:ifx$=""theni=t:goto865
- 840 y=.:forj=1tof1:ifp(.)=1or(p(.)=2andj=1)thenprint#4,f2$(j)":";:y=y+11
- 841 ifw$(i,j)="*"and(p(.)=0or(p(.)=2andj>1))then844
- 842 print#4,w$(i,j);:y=y+len(w$(i,j)):ifp(1)=1andj<f1thenprint#4,",";:y=y+1
- 844 print#4," ";:y=y+2:ifp(.)<>1andlen(w$(i,j+1))+y<80then849
- 845 ifp(.)=1andlen(w$(i,j+1))+y+11<80then849
- 847 y=.:print#4
- 849 next:print#4:ifasc(f2$(1))<>42then865
- 850 y=.:forj=2to11:ifw$(i,j)="*"thenj=11:goto860
- 852 ify=.andp(.)>.thenprint#4," ";:y=11
- 855 print#4,w$(i,j);:y=y+len(w$(i,j)):ifp(1)=1thenprint#4,",";:y=y+1
- 856 print#4," ";:y=y+1:ifj<11theniflen(w$(i,j+1))+y>79theny=.:print#4
- 860 next:print#4
- 865 print#4:next:forj=1to10:print#4:next:close4:goto2000
- 1000 poke53280,.:poke53281,.:print"[147][158]loading command program[144]"
- 1004 print"load"chr$(34)"f.cmd"chr$(34)",8"
- 1006 print"run":poke198,.:poke631,13:poke632,13:poke198,2:end
- 2000 poke53280,4:poke53281,15:print"[147]";
- 2005 print" ";
- 2008 forj=.to22:print" ";:next
- 2010 print" [157][148] "
- 2012 print"file cabinet[157][157][157][157][157][157][157][157][157][157][157][157][158][197][197][197][197][197][197][197][197][197][197][197][197]"
- 2014 print"[154]file= "f0$"[157][157][157][157][157][157][157][157][157][157][157][157][157][157][157][157][157][157][157][157][157][157][156][183][183][183][183][183][183][183][183][183][183][183]";
- 2015 print"[183][183][183][183][183][183][183][183][183][183][183]"
- 2017 printspc(10)"1 - [144]display":printspc(10)"2 - [144]add records"
- 2018 printspc(10)"3 - [144]edit records":printspc(10)"4 - [144]delete records"
- 2020 printspc(10)"5 - [144]print":printspc(10)"6 - [144]exit file"
- 2023 print""spc(13);
- 2025 y$="depress option"::gosub444:ifx$=""then5400
- 2030 ifx$<"1"orx$>"6"then2023
- 2035 o$=x$:if(o$="6"orx$="")andch=.then500
- 2037 ifo$="4"andt=1thenx$="file empty":gosub425:goto2000
- 2040 onval(o$)goto2050,655,2050,2050,825,5400
- 2050 gosub35:print"":fori=1tof1
- 2055 print""spc(12);:dl=25:gosub460:ifx$=""theni=f1:next:goto2000
- 2060 ifz$<>""theny=i:i=f1
- 2065 next:sa=1:ifz$=""then2000
- 2070 h=.:x=len(z$):forj=satot:ifleft$(w$(j,y),x)=z$thenh=j:sa=j+1:j=t
- 2075 next:ifh=.thenx$="record not found":gosub425:goto2050
- 2080 gosub25:onval(o$)goto2085,0,750,725
- 2085 gosub130:ifx$=chr$(13)thenh=h+1:ifh>tthenh=1
- 2090 ifx$=chr$(13)then2080
- 2095 ifx$="n"then2050
- 2097 goto2000
- 4000 poke53280,6:poke53281,6:print"[147]"spc(14)"file cabinet"
- 4002 printspc(18)"[158]ended[144]":load"hello connect",8:end
- 4999 stop
- 5000 dimw$(200,11)
- 5001 forj=1to40:x$=x$+"[157]":y$=y$+"":next:lr$=x$+y$:forj=1to40:sp$=sp$+" ":next
- 5002 ce$=""+left$(sp$,38)+left$(lr$,27)
- 5003 cd$=" [157][157][157][157][157][157][157][157][157][157][157][157][157][157][157][157][157][157][157][157][157][157][157][157][157]"
- 5004 cb$=""+left$(sp$,38)+left$(lr$,38):return
- 5049 return
- 5400 ifch=.thenrun
- 5401 poke53280,.:poke53281,.:print"[147][158]";:y$="shall i save the changes y/n"
- 5405 gosub444:ifx$="n"orx$=""thenrun
- 5406 ifx$="r"then2000
- 5410 ifx$<>"y"then5400
- 5415 print"[147]saving : "f0$
- 5420 open15,8,15:print#15,"s0:"+f0$:close15
- 5425 open3,8,3,"0:"+f0$+",s,w":print#3,t:ifasc(f2$(1))=42then5440
- 5430 fori=1tot:forj=1tof1:print#3,w$(i,j):next:next:goto5450
- 5440 fori=1tot:forj=1to11:print#3,w$(i,j):next:next
- 5450 close3:ifch=1thenrun
- 5452 open15,8,15:print#15,"s0:dir":close15:open3,8,3,"0:dir,s,w":print#3,t1
- 5455 forj=1tot1:print#3,w$(j,.):next:close3:run
- 5555 open15,8,15:print#15,"s0:file cabinet":close15:save"file cabinet",8:end
-